import { defineStore } from 'pinia';

interface TableData {
  startRow: number;
  endRow: number;
  startColumn: number;
  endColumn: number;
  values: any[][];
}

export const useTableStore = defineStore('table', {
  state: (): { selectedData: null | TableData } => ({
    selectedData: null,
  }),
  actions: {
    setSelectedData(data: TableData) {
      this.selectedData = data;
    },
  },
});
